Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 1 - Introduction to Printing With QuickDraw GX / About QuickDraw GX Printing-Related Objects


Collection Objects

Collection objects are repositories for additional information associated with the core printing-related objects. Each piece of information is called an item. The print collection objects are

Figure 1-13 on page 1-21 shows the items that QuickDraw GX defines for these collection objects. They are discussed completely in the chapter "Page Formatting and Dialog Box Customization" in this book.

Typically, an item in a collection object is set by the printer driver. The user can change the item by setting values or controls in a dialog box. For example, the value in the copies information item of the job collection is set by the printer driver. The default Print dialog box allows the user to change the value. The value in the item is then used by the printer driver to determine how many times to print the pages associated with the job object.

You only need to be concerned about the information in collection objects in the following situations:

For an example of the first situation, to implement the Print One Copy menu item, you need to set the copies item in the job collection to 1 before printing and reset it to its previous value afterwards.

Consider the following example that applies to the second situation. The job object specifies the pages to print, which the printer driver uses, by default, in its Print dialog box. The job collection object provides a page-range information item that allows a complex range of pages to be specified. To support the complex page range, you must customize the Print dialog box to display the range from the collection item and store the new values back in the collection object when the user changes them. Of course, the printer driver must be set up to use the collection item too.

A printer driver can define additional items and store them in the appropriate collection. Your application can do likewise. You should consider whether these collections are appropriate for the kind of information you wish to manage. You can also create your own special-purpose collections. For more information about collections, see the Collection Manager chapter of Inside Macintosh: QuickDraw GX Environment and Utilities.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help